package com.rsy.crm.workbench.dao;

import com.rsy.crm.workbench.domain.ClueActivityRelation;

import java.util.List;

/**
 * 线索活动关联
 */
public interface ClueActivityRelationDao {
    /**
     * 删除关联
     * @param id
     * @return
     */
    int unbund(String id);

    /**
     * 添加关联关系表
     * @param car
     * @return
     */
    int bund(ClueActivityRelation car);

    /**
     * 通过id获取线索活动关联
     * @param clueId
     * @return
     */
    List<ClueActivityRelation> getListByClueId(String clueId);

    /**
     * 删除线索活动关联
     * @param clueActivityRelation
     * @return
     */
    int delete(ClueActivityRelation clueActivityRelation);
}
